#ifndef SUPER_BTN_H
#define SUPER_BTN_H

#include <QtGui>

class CSuperBtn : public QWidget
{
	Q_OBJECT
public:
	CSuperBtn(QWidget* parent=0);
	~CSuperBtn(void);

protected:
	void mousePressEvent(QMouseEvent* event);
	void mouseReleaseEvent(QMouseEvent* event);
	virtual void OnMouseEnter()=0;
	virtual void OnMouseLeave()=0;

signals:
	void OnClicked();

protected:
	QPoint m_ptPrevious;
	bool m_bMousePressed;
};

#endif	//SUPER_BTN_H
